


<table cellspacing="0" width="100%">
							<tr>
								<td class="DialogTitle">Profile details</td>
							</tr>
							<tr>
								<td class="DialogBorder"><table cellspacing="1" class="DialogBox">
										<tr>
											<td class="DialogBox" valign="top">
												<div align="right">

												{*
													<table cellspacing="0" class="SimpleButton">
														<tr>
															<td>
															<!--
																<a class="Button" href="users.php?mode=search" title="Modify customer profile">Return to the search results&nbsp;</a>
															-->
															</td>
															<td>
																<a class="Button" href="users.php?mode=search" title="Modify customer profile"><img src="{$wwwDir}images/go_admin.gif" class="GoImage_admin" alt="" /></a>
															</td>
														</tr>
													</table>
												*}
												</div>

{*
<script type="text/javascript" language="JavaScript 1.2">
<!--
var is_run = false;
function check_registerform_fields() {
	if(is_run)
		return false;
	is_run = true;
	if (check_zip_code() && checkEmailAddress(document.registerform.email, 'Y') && checkRequired(requiredFields)) {
		document.registerform.submit();
		return true;
	}
	is_run = false;
	return false;
}
-->
</script>
*}


											<!-- onsubmit="javascript: check_registerform_fields(); return false;" -->
											<form action="{$smarty.server.PHP_SELF}?mode=edit&id={$userEdit->id()}" method="post" name="registerform" >
													<input type="hidden" name="_formid" value="9b641c14bc5669fd1994d108a2a121c5" />

													<input type="hidden" name="login_id" value="{$userEdit->authId()}" />
													<input type="hidden" name="user_id" value="{$userEdit->id()}" />
													<input type="hidden" name="level" value="{$userEdit->authLevel()}" />

													<table cellspacing="1" cellpadding="2" width="100%">
														<tbody>
															<tr>
																<td colspan="3" class="RegSectionTitle">Personal information
																	<hr size="1" noshade="noshade" /></td>
															</tr>
															<tr>
																<td align="right">Title</td>
																<td><font class="Star">*</font></td>
																<td nowrap="nowrap"><select name="title" id="title">
																		<option value="Mr." selected="selected">Mr.</option>
																		<option value="Mrs.">Mrs.</option>
																		<option value="Ms.">Ms.</option>
																	</select>
																</td>
															</tr>
															<tr>
																<td align="right">First name</td>
																<td><font class="Star">*</font></td>
																<td nowrap="nowrap"><input type="text" id="firstname" name="firstname" size="32" maxlength="32" value="{$userEdit->firstName()}" />
																</td>
															</tr>
															<tr>
																<td align="right">Last name</td>
																<td><font class="Star">*</font></td>
																<td nowrap="nowrap"><input type="text" id="lastname" name="lastname" size="32" maxlength="32" value="{$userEdit->lastName()}" />
																</td>
															</tr>
															
															
															<tr>
																<td height="20" colspan="3"><font class="RegSectionTitle">Contact Information</font>
																	<hr size="1" noshade="noshade" /></td>
															</tr>
															<tr>
																<td align="right">Phone</td>
																<td><font class="Star">*</font></td>
																<td nowrap="nowrap"><input type="text" id="phone" name="phone" size="32" maxlength="32" value="{$userEdit->phone()}" />
																</td>
															</tr>
															<tr>
																<td align="right">E-mail</td>
																<td><font class="Star">*</font></td>
																<td nowrap="nowrap"><input type="text" id="email" name="email" size="32" maxlength="128" value="{$userEdit->mail()}" />
																</td>
															</tr>
														
															<tr>
																<td colspan="3" class="RegSectionTitle">Username &amp; Password
																	<hr size="1" noshade="noshade" /></td>
															</tr>
														
															<tr>
																<td align="right">Username</td>
																<td class="Star">*</td>
																<td nowrap="nowrap">
																{if $userEdit->id()}
																	<b>{$userEdit->authName()}</b>
																	<input type="hidden" name="uname" value="{$userEdit->authName()}" />
																{else}
																	<input type="text" name="uname" value="" />
																{/if}
																</td>
															</tr>

															{if $auth->level()==9}
																<tr>
																<td align="right">User Auth Level</td>
																<td>&nbsp;</td>
																<td nowrap="nowrap">
																	<select name="ulevel">
																	{section name=levels start=0 loop=10 step=1}
																		{assign var="i" value=$smarty.section.levels.index}
																		<option value="{$i}" {if $userEdit->level()==$i}selected="selected"{/if}>{$i}</option>
																	{/section}
																</td>
															</tr>

															{/if}

															<tr>
																<td align="right">Password</td>
																<td><font class="Star">*</font></td>
																<td nowrap="nowrap"><input type="password" id="passwd1" name="passwd1" size="32" maxlength="64" value="" /> <!--{$userEdit->authPassword()}-->
																</td>
															</tr>
															<tr>
																<td align="right">Confirm Password</td>
																<td class="Star">*</td>
																<td nowrap="nowrap"><input type="password" id="passwd2" name="passwd2" size="32" maxlength="64" value="" /><!--{$userEdit->authPassword()}-->
																</td>
															</tr>
															<tr valign="middle">
																<td align="right">Account status:</td>
																<td>&nbsp;</td>
																<td nowrap="nowrap"><select name="status">
																		<option value="N">suspended</option>
																		<option value="Y" selected="selected">enabled</option>
																	</select>
																</td>
															</tr>
															<tr valign="middle">
																<td colspan="2">&nbsp;</td>
																<td nowrap="nowrap"><table>
																		<tr>
																			<td><input type="checkbox" id="change_password" name="change_password" value="Y" /></td>
																			<td><label for="change_password">Require to change password on next log in</label></td>
																		</tr>
																	</table></td>
															</tr>

														<!--
															<tr>
																<td height="20" colspan="3"><b>Newsletter</b>
																	<hr size="1" noshade="noshade" /></td>
															</tr>
															<tr>
																<td colspan="3">If you wish to receive our Newsletter, please select the News lists to which you want to subscribe:</td>
															</tr>
															<tr>
																<td colspan="2">&nbsp;</td>
																<td><table border="0">
																		<tr>
																			<td><input type="checkbox" name="subscription[1]"  /></td>
																			<td>Site updates</td>
																		</tr>
																		<tr>
																			<td>&nbsp;</td>
																			<td><i>News regarding our shop new offers and products</i></td>
																		</tr>
																		<tr>
																			<td><input type="checkbox" name="subscription[2]"  /></td>
																			<td>Exclusive special offers</td>
																		</tr>
																		<tr>
																			<td>&nbsp;</td>
																			<td><i>Information about our exclusive offers available only by subscription</i></td>
																		</tr>
																	</table></td>
															</tr>
															<tr>
																<td colspan="3" align="center"><br />
																	<br />
																</td>
															</tr>
														-->



															<tr>
																<td colspan="2">&nbsp;</td>
																<td><input type="hidden" name="anonymous" value="" />
																	<input type="submit" name="submit" value=" Submit " />
																</td>
															</tr>
														</tbody>
													</table>
													<input type="hidden" name="usertype" value="C" />
												</form>
												<br />
												<br />

											<!--
												<b>Information </b> <br />
												<br />
												The password must be different from the username. It is strongly recommended to use passwords of 5 or more characters. <br />
												<br />
												E-mail address must be valid because it will be used for communication purposes (order notifications, etc). <br />
												&nbsp;
											-->


											</td>
										</tr>
									</table></td>
							</tr>
						</table>